#ifndef COMMON_H
#define COMMON_H

#include <QMutex>
#include <QMutexLocker>

//PLC交互
struct ToPLC{
    bool hot_product = 0; //1-无产品、0-有产品
    bool cold_product = 0;
};

struct FromPLC{
    bool hot_vision = false; //视觉启动-热
    bool cold_vision = false; //冷
};


//全局变量
extern QMutex g_rw_mtx;
extern ToPLC g_toplc_data;
extern FromPLC g_fromplc_data;


#endif // COMMON_H
